package xcmg.device.dao.mapper.ratingManager;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xcmg.device.dao.entity.ratingManager.MonthPlanAccuracyDetailDO;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface MonthPlanAccuracyDetailDOMapper {
    int deleteByPrimaryKey(String id);

    int insert(MonthPlanAccuracyDetailDO record);

    int insertSelective(MonthPlanAccuracyDetailDO record);

    MonthPlanAccuracyDetailDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(MonthPlanAccuracyDetailDO record);

    int updateByPrimaryKey(MonthPlanAccuracyDetailDO record);

    Integer getUrgentOrderCount(@Param("orgId") String orgId, @Param("clientId") String clientId,
                                @Param("startTime")Date startTime,@Param("endTime")Date endTime);

    Integer getUrgentOrderLineCount(@Param("orgId") String orgId, @Param("clientId") String clientId,
                                @Param("startTime")Date startTime,@Param("endTime")Date endTime);

    Integer getMonthOrderLineCount(@Param("orgId") String orgId,@Param("clientId") String clientId,
                               @Param("startTime")Date startTime,@Param("endTime")Date endTime);

    int batchInsert(@Param("recordList") List<MonthPlanAccuracyDetailDO> recordList );

    MonthPlanAccuracyDetailDO selectByScoreInfoId(@Param("scoreInfoId") String scoreInfoId);
}